package com.example.ykbboom.universitytransportation.VO;


/**
 * Created by ykbboom on 2017/3/2.
 */

public class BaseResultVO {
    public static final int RESULT_CODE_OK = 200;
    public static final int RESULT_CODE_FAIL = 300;

    private ErrorResult errorResult;
    private int resultCode;//默认200为成功
    private String msg;

    public BaseResultVO() {
    }

    public BaseResultVO(ErrorResult errorResult, int resultCode, String msg) {
        this.errorResult = errorResult;
        this.resultCode = resultCode;
        this.msg = msg;
    }

    public ErrorResult getErrorResult() {
        return errorResult;
    }

    public void setErrorResult(ErrorResult errorResult) {
        this.errorResult = errorResult;
    }

    public static int getResultCodeOk() {
        return RESULT_CODE_OK;
    }

    public static int getResultCodeFail() {
        return RESULT_CODE_FAIL;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
